package com.kelaite.procurement.service;

import java.util.List;

import com.kelaite.procurement.entity.TCompany;
import com.kelaite.procurement.entity.TVendor;

public interface VendorService {
	public TVendor save(TVendor persistence);

	public void deleteByPrimaryKey(Long id);
	
	public void deleteByObject(TVendor persistence);

	public TVendor getObject(Long id);
	
	public List<TVendor> getAll();

	public List<TVendor> getByProperty(String property, Object value);
	
	public TVendor getVendorByClientAndSupplier(TCompany client, TCompany supplier);
	
	public void updateVendorGrade(Long id,String grade,String status);
	
}
